// 扫码
export default function() {
	return new Promise((resolve, reject) => {
		uni.scanCode({
			success: res => {
				resolve(res.result)
			},
			fail: err => {
				console.log('扫码失败！', err)
			}
		})
	})
}